package com.miao.config;


import com.miao.UserClass.MyBeanPostProcessor;
import com.miao.entity.Food;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;


@Configuration
@Import( {MyBeanPostProcessor.class})
public class JavaConfig6 {


    @Bean(initMethod = "myInit", destroyMethod = "myDestroy")
    Food food(){
        Food food = new Food();
        food.setName("Rice");
        food.setColo("White");
        return food;
    }



}
